package com.project.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.template.entity.Banner;
import com.project.template.entity.Posts;

import java.util.Map;

public interface PostsService extends IService<Posts> {
    Page<Posts> page(Map<String, Object> query, Integer pageNum, Integer pageSize);
    Posts getPosts(int id);
    Page<Posts> mypage(Map<String, Object> query, Integer pageNum, Integer pageSize);
}